home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
DirectionArrow.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
1KB
|
38 lines
class DirectionArrow extends SSObject
{
var assetID = "Arrow";
var angle = 0;
var pointAngle = 0;
var depthLayer = 1;
var editor_isItem = true;
var editor_name = "Arrow";
var editor_args_names = ["angle","pointAngle"];
var editor_args_values = [DirectionArrow.prototype.angle,DirectionArrow.prototype.pointAngle];
var editor_args_types = ["number","number"];
var editor_args_options = [[-360,360,1],[-360,360,1]];
var editor_args_descriptions = ["",""];
var editor_args_mode = [0,0];
var editor_args_component = ["NumericStepper","NumericStepper"];
var editor_canChangeFrame = false;
function DirectionArrow(angle, pointAngle)
{
super();
if(angle)
{
this.angle = angle;
}
if(pointAngle)
{
this.pointAngle = pointAngle;
}
}
function onAddDisplay()
{
this.target.a._rotation = - (this.target._rotation = this.angle) + this.pointAngle;
}
function editor_onDisplay(target)
{
target.a._rotation = - (target._rotation = this.angle) + this.pointAngle;
}
}